<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>双向绑定v-model</title>
</head>
<body>
    <div id="app">
        java:<input type="checkbox" v-model="language" value="java"><br>
        c++:<input type="checkbox" v-model="language" value="c++"><br>
        python:<input type="checkbox" v-model="language" value="python"><br>
        选择的学科是:{{language.join(',')}}
    </div>
</body>
<script src="../node_modules/vue/dist/vue.js"></script>
<script>

    let vm = new Vue({
        el:"#app",
        data:{
           language:[]
        },
        methods:{
           add(){
               return 3+3;
           }
        }
    })
</script>
</html>